// --------------------------------------------------------------------------------------------------------------------- 
// <copyright file="DialectKeyDriverTypeCollection.cs" company="">
//   
// </copyright>
// <summary>
//   Defines the DialectKeyDriverTypeCollection type.
// </summary>
// ---------------------------------------------------------------------------------------------------------------------

using System.Collections.ObjectModel;

namespace Ornament.NHibernates.Configurations
{
    /// <summary>
    /// Dialect is key.
    /// </summary>
    public class DialectKeyDriverTypeCollection : KeyedCollection<string, DataBaseType>
    {
        /// <summary>
        /// </summary>
        /// <param name="item">
        /// The item.
        /// </param>
        /// <returns>
        /// </returns>
        protected override string GetKeyForItem(DataBaseType item)
        {            
            return item.Dialect;
        }
    }
}